package com.ghck.message.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;


@Component
public class JpushListener implements ApplicationListener<JpushEvent>{

	private final static Logger logger=LoggerFactory.getLogger(JpushListener.class);
	
	@Override
	public void onApplicationEvent(JpushEvent event) {
		logger.info("JpushListener begin,event is "+JSON.toJSONString(event));
	}

}
